<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <!-- typeof 识别基本类型(number,string,true(boolean),undifined,null(object))，null识别为object
        引用类型中的function能识别,array识别成对象 -->
    <script>
        // 如何判断一个数组是否是数组
        //Array.isArray(arr);
        //arr instanceof Array;
        var arr = [1,2,3];
        console.log(arr instanceof Array);
    </script>
</body>
</html>